get contents of selection
